<!DOCTYPE html>
<html>
<head>
    <meta charset='utf-8'>
    <meta http-equiv='X-UA-Compatible' content='IE=edge'>
    <title>Page Title</title>
    <meta name='viewport' content='width=device-width, initial-scale=1'>
    <link rel='stylesheet' type='text/css' media='screen' href='main.css'>
    <script src='main.js'></script>
</head>
<body>
    
</body>
<script>
   // 1. 生成10-20之间的随机数（包含10和20）
function getRandomNumber() {
    return Math.floor(Math.random() * 11) + 10;
}

console.log("10-20之间的随机数：", getRandomNumber());     
</script>
<script>
    // 2. 随机生成颜色（如：#3c3c3c）
function getRandomColor() {
    const letters = '0123456789ABCDEF';
    let color = '#';
    for (let i = 0; i < 6; i++) {
        color += letters[Math.floor(Math.random() * 16)];
    }
    return color;
}

console.log("随机生成的颜色：", getRandomColor());    
</script>
</html>